package com.jied.duodian.entity;

import java.util.ArrayList;
import java.util.Date;
import java.util.List;

public class DdOrderExample {
    protected String orderByClause;

    protected boolean distinct;

    protected List<Criteria> oredCriteria;

    private Integer limit;

    private Long offset;

    public DdOrderExample() {
        oredCriteria = new ArrayList<Criteria>();
    }

    public void setOrderByClause(String orderByClause) {
        this.orderByClause = orderByClause;
    }

    public String getOrderByClause() {
        return orderByClause;
    }

    public void setDistinct(boolean distinct) {
        this.distinct = distinct;
    }

    public boolean isDistinct() {
        return distinct;
    }

    public List<Criteria> getOredCriteria() {
        return oredCriteria;
    }

    public void or(Criteria criteria) {
        oredCriteria.add( criteria );
    }

    public Criteria or() {
        Criteria criteria = createCriteriaInternal();
        oredCriteria.add( criteria );
        return criteria;
    }

    public Criteria createCriteria() {
        Criteria criteria = createCriteriaInternal();
        if (oredCriteria.size() == 0) {
            oredCriteria.add( criteria );
        }
        return criteria;
    }

    protected Criteria createCriteriaInternal() {
        Criteria criteria = new Criteria();
        return criteria;
    }

    public void clear() {
        oredCriteria.clear();
        orderByClause = null;
        distinct = false;
    }

    public void setLimit(Integer limit) {
        this.limit = limit;
    }

    public Integer getLimit() {
        return limit;
    }

    public void setOffset(Long offset) {
        this.offset = offset;
    }

    public Long getOffset() {
        return offset;
    }

    protected abstract static class GeneratedCriteria {
        protected List<Criterion> criteria;

        protected GeneratedCriteria() {
            super();
            criteria = new ArrayList<Criterion>();
        }

        public boolean isValid() {
            return criteria.size() > 0;
        }

        public List<Criterion> getAllCriteria() {
            return criteria;
        }

        public List<Criterion> getCriteria() {
            return criteria;
        }

        protected void addCriterion(String condition) {
            if (condition == null) {
                throw new RuntimeException( "Value for condition cannot be null" );
            }
            criteria.add( new Criterion( condition ) );
        }

        protected void addCriterion(String condition, Object value, String property) {
            if (value == null) {
                throw new RuntimeException( "Value for " + property + " cannot be null" );
            }
            criteria.add( new Criterion( condition, value ) );
        }

        protected void addCriterion(String condition, Object value1, Object value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException( "Between values for " + property + " cannot be null" );
            }
            criteria.add( new Criterion( condition, value1, value2 ) );
        }

        public Criteria andIdIsNull() {
            addCriterion( "id is null" );
            return (Criteria) this;
        }

        public Criteria andIdIsNotNull() {
            addCriterion( "id is not null" );
            return (Criteria) this;
        }

        public Criteria andIdEqualTo(Integer value) {
            addCriterion( "id =", value, "id" );
            return (Criteria) this;
        }

        public Criteria andIdNotEqualTo(Integer value) {
            addCriterion( "id <>", value, "id" );
            return (Criteria) this;
        }

        public Criteria andIdGreaterThan(Integer value) {
            addCriterion( "id >", value, "id" );
            return (Criteria) this;
        }

        public Criteria andIdGreaterThanOrEqualTo(Integer value) {
            addCriterion( "id >=", value, "id" );
            return (Criteria) this;
        }

        public Criteria andIdLessThan(Integer value) {
            addCriterion( "id <", value, "id" );
            return (Criteria) this;
        }

        public Criteria andIdLessThanOrEqualTo(Integer value) {
            addCriterion( "id <=", value, "id" );
            return (Criteria) this;
        }

        public Criteria andIdIn(List<Integer> values) {
            addCriterion( "id in", values, "id" );
            return (Criteria) this;
        }

        public Criteria andIdNotIn(List<Integer> values) {
            addCriterion( "id not in", values, "id" );
            return (Criteria) this;
        }

        public Criteria andIdBetween(Integer value1, Integer value2) {
            addCriterion( "id between", value1, value2, "id" );
            return (Criteria) this;
        }

        public Criteria andIdNotBetween(Integer value1, Integer value2) {
            addCriterion( "id not between", value1, value2, "id" );
            return (Criteria) this;
        }

        public Criteria andProductIdIsNull() {
            addCriterion( "product_id is null" );
            return (Criteria) this;
        }

        public Criteria andProductIdIsNotNull() {
            addCriterion( "product_id is not null" );
            return (Criteria) this;
        }

        public Criteria andProductIdEqualTo(Integer value) {
            addCriterion( "product_id =", value, "productId" );
            return (Criteria) this;
        }

        public Criteria andProductIdNotEqualTo(Integer value) {
            addCriterion( "product_id <>", value, "productId" );
            return (Criteria) this;
        }

        public Criteria andProductIdGreaterThan(Integer value) {
            addCriterion( "product_id >", value, "productId" );
            return (Criteria) this;
        }

        public Criteria andProductIdGreaterThanOrEqualTo(Integer value) {
            addCriterion( "product_id >=", value, "productId" );
            return (Criteria) this;
        }

        public Criteria andProductIdLessThan(Integer value) {
            addCriterion( "product_id <", value, "productId" );
            return (Criteria) this;
        }

        public Criteria andProductIdLessThanOrEqualTo(Integer value) {
            addCriterion( "product_id <=", value, "productId" );
            return (Criteria) this;
        }

        public Criteria andProductIdIn(List<Integer> values) {
            addCriterion( "product_id in", values, "productId" );
            return (Criteria) this;
        }

        public Criteria andProductIdNotIn(List<Integer> values) {
            addCriterion( "product_id not in", values, "productId" );
            return (Criteria) this;
        }

        public Criteria andProductIdBetween(Integer value1, Integer value2) {
            addCriterion( "product_id between", value1, value2, "productId" );
            return (Criteria) this;
        }

        public Criteria andProductIdNotBetween(Integer value1, Integer value2) {
            addCriterion( "product_id not between", value1, value2, "productId" );
            return (Criteria) this;
        }

        public Criteria andProductNumIsNull() {
            addCriterion( "product_num is null" );
            return (Criteria) this;
        }

        public Criteria andProductNumIsNotNull() {
            addCriterion( "product_num is not null" );
            return (Criteria) this;
        }

        public Criteria andProductNumEqualTo(Integer value) {
            addCriterion( "product_num =", value, "productNum" );
            return (Criteria) this;
        }

        public Criteria andProductNumNotEqualTo(Integer value) {
            addCriterion( "product_num <>", value, "productNum" );
            return (Criteria) this;
        }

        public Criteria andProductNumGreaterThan(Integer value) {
            addCriterion( "product_num >", value, "productNum" );
            return (Criteria) this;
        }

        public Criteria andProductNumGreaterThanOrEqualTo(Integer value) {
            addCriterion( "product_num >=", value, "productNum" );
            return (Criteria) this;
        }

        public Criteria andProductNumLessThan(Integer value) {
            addCriterion( "product_num <", value, "productNum" );
            return (Criteria) this;
        }

        public Criteria andProductNumLessThanOrEqualTo(Integer value) {
            addCriterion( "product_num <=", value, "productNum" );
            return (Criteria) this;
        }

        public Criteria andProductNumIn(List<Integer> values) {
            addCriterion( "product_num in", values, "productNum" );
            return (Criteria) this;
        }

        public Criteria andProductNumNotIn(List<Integer> values) {
            addCriterion( "product_num not in", values, "productNum" );
            return (Criteria) this;
        }

        public Criteria andProductNumBetween(Integer value1, Integer value2) {
            addCriterion( "product_num between", value1, value2, "productNum" );
            return (Criteria) this;
        }

        public Criteria andProductNumNotBetween(Integer value1, Integer value2) {
            addCriterion( "product_num not between", value1, value2, "productNum" );
            return (Criteria) this;
        }

        public Criteria andUserNameIsNull() {
            addCriterion( "user_name is null" );
            return (Criteria) this;
        }

        public Criteria andUserNameIsNotNull() {
            addCriterion( "user_name is not null" );
            return (Criteria) this;
        }

        public Criteria andUserNameEqualTo(String value) {
            addCriterion( "user_name =", value, "userName" );
            return (Criteria) this;
        }

        public Criteria andUserNameNotEqualTo(String value) {
            addCriterion( "user_name <>", value, "userName" );
            return (Criteria) this;
        }

        public Criteria andUserNameGreaterThan(String value) {
            addCriterion( "user_name >", value, "userName" );
            return (Criteria) this;
        }

        public Criteria andUserNameGreaterThanOrEqualTo(String value) {
            addCriterion( "user_name >=", value, "userName" );
            return (Criteria) this;
        }

        public Criteria andUserNameLessThan(String value) {
            addCriterion( "user_name <", value, "userName" );
            return (Criteria) this;
        }

        public Criteria andUserNameLessThanOrEqualTo(String value) {
            addCriterion( "user_name <=", value, "userName" );
            return (Criteria) this;
        }

        public Criteria andUserNameLike(String value) {
            addCriterion( "user_name like", value, "userName" );
            return (Criteria) this;
        }

        public Criteria andUserNameNotLike(String value) {
            addCriterion( "user_name not like", value, "userName" );
            return (Criteria) this;
        }

        public Criteria andUserNameIn(List<String> values) {
            addCriterion( "user_name in", values, "userName" );
            return (Criteria) this;
        }

        public Criteria andUserNameNotIn(List<String> values) {
            addCriterion( "user_name not in", values, "userName" );
            return (Criteria) this;
        }

        public Criteria andUserNameBetween(String value1, String value2) {
            addCriterion( "user_name between", value1, value2, "userName" );
            return (Criteria) this;
        }

        public Criteria andUserNameNotBetween(String value1, String value2) {
            addCriterion( "user_name not between", value1, value2, "userName" );
            return (Criteria) this;
        }

        public Criteria andCreateTimeIsNull() {
            addCriterion( "create_time is null" );
            return (Criteria) this;
        }

        public Criteria andCreateTimeIsNotNull() {
            addCriterion( "create_time is not null" );
            return (Criteria) this;
        }

        public Criteria andCreateTimeEqualTo(Date value) {
            addCriterion( "create_time =", value, "createTime" );
            return (Criteria) this;
        }

        public Criteria andCreateTimeNotEqualTo(Date value) {
            addCriterion( "create_time <>", value, "createTime" );
            return (Criteria) this;
        }

        public Criteria andCreateTimeGreaterThan(Date value) {
            addCriterion( "create_time >", value, "createTime" );
            return (Criteria) this;
        }

        public Criteria andCreateTimeGreaterThanOrEqualTo(Date value) {
            addCriterion( "create_time >=", value, "createTime" );
            return (Criteria) this;
        }

        public Criteria andCreateTimeLessThan(Date value) {
            addCriterion( "create_time <", value, "createTime" );
            return (Criteria) this;
        }

        public Criteria andCreateTimeLessThanOrEqualTo(Date value) {
            addCriterion( "create_time <=", value, "createTime" );
            return (Criteria) this;
        }

        public Criteria andCreateTimeIn(List<Date> values) {
            addCriterion( "create_time in", values, "createTime" );
            return (Criteria) this;
        }

        public Criteria andCreateTimeNotIn(List<Date> values) {
            addCriterion( "create_time not in", values, "createTime" );
            return (Criteria) this;
        }

        public Criteria andCreateTimeBetween(Date value1, Date value2) {
            addCriterion( "create_time between", value1, value2, "createTime" );
            return (Criteria) this;
        }

        public Criteria andCreateTimeNotBetween(Date value1, Date value2) {
            addCriterion( "create_time not between", value1, value2, "createTime" );
            return (Criteria) this;
        }

        public Criteria andOrderSnIsNull() {
            addCriterion( "order_sn is null" );
            return (Criteria) this;
        }

        public Criteria andOrderSnIsNotNull() {
            addCriterion( "order_sn is not null" );
            return (Criteria) this;
        }

        public Criteria andOrderSnEqualTo(String value) {
            addCriterion( "order_sn =", value, "orderSn" );
            return (Criteria) this;
        }

        public Criteria andOrderSnNotEqualTo(String value) {
            addCriterion( "order_sn <>", value, "orderSn" );
            return (Criteria) this;
        }

        public Criteria andOrderSnGreaterThan(String value) {
            addCriterion( "order_sn >", value, "orderSn" );
            return (Criteria) this;
        }

        public Criteria andOrderSnGreaterThanOrEqualTo(String value) {
            addCriterion( "order_sn >=", value, "orderSn" );
            return (Criteria) this;
        }

        public Criteria andOrderSnLessThan(String value) {
            addCriterion( "order_sn <", value, "orderSn" );
            return (Criteria) this;
        }

        public Criteria andOrderSnLessThanOrEqualTo(String value) {
            addCriterion( "order_sn <=", value, "orderSn" );
            return (Criteria) this;
        }

        public Criteria andOrderSnLike(String value) {
            addCriterion( "order_sn like", value, "orderSn" );
            return (Criteria) this;
        }

        public Criteria andOrderSnNotLike(String value) {
            addCriterion( "order_sn not like", value, "orderSn" );
            return (Criteria) this;
        }

        public Criteria andOrderSnIn(List<String> values) {
            addCriterion( "order_sn in", values, "orderSn" );
            return (Criteria) this;
        }

        public Criteria andOrderSnNotIn(List<String> values) {
            addCriterion( "order_sn not in", values, "orderSn" );
            return (Criteria) this;
        }

        public Criteria andOrderSnBetween(String value1, String value2) {
            addCriterion( "order_sn between", value1, value2, "orderSn" );
            return (Criteria) this;
        }

        public Criteria andOrderSnNotBetween(String value1, String value2) {
            addCriterion( "order_sn not between", value1, value2, "orderSn" );
            return (Criteria) this;
        }

        public Criteria andMessageIsNull() {
            addCriterion( "message is null" );
            return (Criteria) this;
        }

        public Criteria andMessageIsNotNull() {
            addCriterion( "message is not null" );
            return (Criteria) this;
        }

        public Criteria andMessageEqualTo(String value) {
            addCriterion( "message =", value, "message" );
            return (Criteria) this;
        }

        public Criteria andMessageNotEqualTo(String value) {
            addCriterion( "message <>", value, "message" );
            return (Criteria) this;
        }

        public Criteria andMessageGreaterThan(String value) {
            addCriterion( "message >", value, "message" );
            return (Criteria) this;
        }

        public Criteria andMessageGreaterThanOrEqualTo(String value) {
            addCriterion( "message >=", value, "message" );
            return (Criteria) this;
        }

        public Criteria andMessageLessThan(String value) {
            addCriterion( "message <", value, "message" );
            return (Criteria) this;
        }

        public Criteria andMessageLessThanOrEqualTo(String value) {
            addCriterion( "message <=", value, "message" );
            return (Criteria) this;
        }

        public Criteria andMessageLike(String value) {
            addCriterion( "message like", value, "message" );
            return (Criteria) this;
        }

        public Criteria andMessageNotLike(String value) {
            addCriterion( "message not like", value, "message" );
            return (Criteria) this;
        }

        public Criteria andMessageIn(List<String> values) {
            addCriterion( "message in", values, "message" );
            return (Criteria) this;
        }

        public Criteria andMessageNotIn(List<String> values) {
            addCriterion( "message not in", values, "message" );
            return (Criteria) this;
        }

        public Criteria andMessageBetween(String value1, String value2) {
            addCriterion( "message between", value1, value2, "message" );
            return (Criteria) this;
        }

        public Criteria andMessageNotBetween(String value1, String value2) {
            addCriterion( "message not between", value1, value2, "message" );
            return (Criteria) this;
        }

        public Criteria andTotalAmountIsNull() {
            addCriterion( "total_amount is null" );
            return (Criteria) this;
        }

        public Criteria andTotalAmountIsNotNull() {
            addCriterion( "total_amount is not null" );
            return (Criteria) this;
        }

        public Criteria andTotalAmountEqualTo(Double value) {
            addCriterion( "total_amount =", value, "totalAmount" );
            return (Criteria) this;
        }

        public Criteria andTotalAmountNotEqualTo(Double value) {
            addCriterion( "total_amount <>", value, "totalAmount" );
            return (Criteria) this;
        }

        public Criteria andTotalAmountGreaterThan(Double value) {
            addCriterion( "total_amount >", value, "totalAmount" );
            return (Criteria) this;
        }

        public Criteria andTotalAmountGreaterThanOrEqualTo(Double value) {
            addCriterion( "total_amount >=", value, "totalAmount" );
            return (Criteria) this;
        }

        public Criteria andTotalAmountLessThan(Double value) {
            addCriterion( "total_amount <", value, "totalAmount" );
            return (Criteria) this;
        }

        public Criteria andTotalAmountLessThanOrEqualTo(Double value) {
            addCriterion( "total_amount <=", value, "totalAmount" );
            return (Criteria) this;
        }

        public Criteria andTotalAmountIn(List<Double> values) {
            addCriterion( "total_amount in", values, "totalAmount" );
            return (Criteria) this;
        }

        public Criteria andTotalAmountNotIn(List<Double> values) {
            addCriterion( "total_amount not in", values, "totalAmount" );
            return (Criteria) this;
        }

        public Criteria andTotalAmountBetween(Double value1, Double value2) {
            addCriterion( "total_amount between", value1, value2, "totalAmount" );
            return (Criteria) this;
        }

        public Criteria andTotalAmountNotBetween(Double value1, Double value2) {
            addCriterion( "total_amount not between", value1, value2, "totalAmount" );
            return (Criteria) this;
        }

        public Criteria andFaAddressIsNull() {
            addCriterion( "fa_address is null" );
            return (Criteria) this;
        }

        public Criteria andFaAddressIsNotNull() {
            addCriterion( "fa_address is not null" );
            return (Criteria) this;
        }

        public Criteria andFaAddressEqualTo(Integer value) {
            addCriterion( "fa_address =", value, "faAddress" );
            return (Criteria) this;
        }

        public Criteria andFaAddressNotEqualTo(Integer value) {
            addCriterion( "fa_address <>", value, "faAddress" );
            return (Criteria) this;
        }

        public Criteria andFaAddressGreaterThan(Integer value) {
            addCriterion( "fa_address >", value, "faAddress" );
            return (Criteria) this;
        }

        public Criteria andFaAddressGreaterThanOrEqualTo(Integer value) {
            addCriterion( "fa_address >=", value, "faAddress" );
            return (Criteria) this;
        }

        public Criteria andFaAddressLessThan(Integer value) {
            addCriterion( "fa_address <", value, "faAddress" );
            return (Criteria) this;
        }

        public Criteria andFaAddressLessThanOrEqualTo(Integer value) {
            addCriterion( "fa_address <=", value, "faAddress" );
            return (Criteria) this;
        }

        public Criteria andFaAddressIn(List<Integer> values) {
            addCriterion( "fa_address in", values, "faAddress" );
            return (Criteria) this;
        }

        public Criteria andFaAddressNotIn(List<Integer> values) {
            addCriterion( "fa_address not in", values, "faAddress" );
            return (Criteria) this;
        }

        public Criteria andFaAddressBetween(Integer value1, Integer value2) {
            addCriterion( "fa_address between", value1, value2, "faAddress" );
            return (Criteria) this;
        }

        public Criteria andFaAddressNotBetween(Integer value1, Integer value2) {
            addCriterion( "fa_address not between", value1, value2, "faAddress" );
            return (Criteria) this;
        }

        public Criteria andXiaAddressIsNull() {
            addCriterion( "xia_address is null" );
            return (Criteria) this;
        }

        public Criteria andXiaAddressIsNotNull() {
            addCriterion( "xia_address is not null" );
            return (Criteria) this;
        }

        public Criteria andXiaAddressEqualTo(Integer value) {
            addCriterion( "xia_address =", value, "xiaAddress" );
            return (Criteria) this;
        }

        public Criteria andXiaAddressNotEqualTo(Integer value) {
            addCriterion( "xia_address <>", value, "xiaAddress" );
            return (Criteria) this;
        }

        public Criteria andXiaAddressGreaterThan(Integer value) {
            addCriterion( "xia_address >", value, "xiaAddress" );
            return (Criteria) this;
        }

        public Criteria andXiaAddressGreaterThanOrEqualTo(Integer value) {
            addCriterion( "xia_address >=", value, "xiaAddress" );
            return (Criteria) this;
        }

        public Criteria andXiaAddressLessThan(Integer value) {
            addCriterion( "xia_address <", value, "xiaAddress" );
            return (Criteria) this;
        }

        public Criteria andXiaAddressLessThanOrEqualTo(Integer value) {
            addCriterion( "xia_address <=", value, "xiaAddress" );
            return (Criteria) this;
        }

        public Criteria andXiaAddressIn(List<Integer> values) {
            addCriterion( "xia_address in", values, "xiaAddress" );
            return (Criteria) this;
        }

        public Criteria andXiaAddressNotIn(List<Integer> values) {
            addCriterion( "xia_address not in", values, "xiaAddress" );
            return (Criteria) this;
        }

        public Criteria andXiaAddressBetween(Integer value1, Integer value2) {
            addCriterion( "xia_address between", value1, value2, "xiaAddress" );
            return (Criteria) this;
        }

        public Criteria andXiaAddressNotBetween(Integer value1, Integer value2) {
            addCriterion( "xia_address not between", value1, value2, "xiaAddress" );
            return (Criteria) this;
        }

        public Criteria andIspayIsNull() {
            addCriterion( "ispay is null" );
            return (Criteria) this;
        }

        public Criteria andIspayIsNotNull() {
            addCriterion( "ispay is not null" );
            return (Criteria) this;
        }

        public Criteria andIspayEqualTo(Integer value) {
            addCriterion( "ispay =", value, "ispay" );
            return (Criteria) this;
        }

        public Criteria andIspayNotEqualTo(Integer value) {
            addCriterion( "ispay <>", value, "ispay" );
            return (Criteria) this;
        }

        public Criteria andIspayGreaterThan(Integer value) {
            addCriterion( "ispay >", value, "ispay" );
            return (Criteria) this;
        }

        public Criteria andIspayGreaterThanOrEqualTo(Integer value) {
            addCriterion( "ispay >=", value, "ispay" );
            return (Criteria) this;
        }

        public Criteria andIspayLessThan(Integer value) {
            addCriterion( "ispay <", value, "ispay" );
            return (Criteria) this;
        }

        public Criteria andIspayLessThanOrEqualTo(Integer value) {
            addCriterion( "ispay <=", value, "ispay" );
            return (Criteria) this;
        }

        public Criteria andIspayIn(List<Integer> values) {
            addCriterion( "ispay in", values, "ispay" );
            return (Criteria) this;
        }

        public Criteria andIspayNotIn(List<Integer> values) {
            addCriterion( "ispay not in", values, "ispay" );
            return (Criteria) this;
        }

        public Criteria andIspayBetween(Integer value1, Integer value2) {
            addCriterion( "ispay between", value1, value2, "ispay" );
            return (Criteria) this;
        }

        public Criteria andIspayNotBetween(Integer value1, Integer value2) {
            addCriterion( "ispay not between", value1, value2, "ispay" );
            return (Criteria) this;
        }

        public Criteria andDeliverySnIsNull() {
            addCriterion( "delivery_sn is null" );
            return (Criteria) this;
        }

        public Criteria andDeliverySnIsNotNull() {
            addCriterion( "delivery_sn is not null" );
            return (Criteria) this;
        }

        public Criteria andDeliverySnEqualTo(String value) {
            addCriterion( "delivery_sn =", value, "deliverySn" );
            return (Criteria) this;
        }

        public Criteria andDeliverySnNotEqualTo(String value) {
            addCriterion( "delivery_sn <>", value, "deliverySn" );
            return (Criteria) this;
        }

        public Criteria andDeliverySnGreaterThan(String value) {
            addCriterion( "delivery_sn >", value, "deliverySn" );
            return (Criteria) this;
        }

        public Criteria andDeliverySnGreaterThanOrEqualTo(String value) {
            addCriterion( "delivery_sn >=", value, "deliverySn" );
            return (Criteria) this;
        }

        public Criteria andDeliverySnLessThan(String value) {
            addCriterion( "delivery_sn <", value, "deliverySn" );
            return (Criteria) this;
        }

        public Criteria andDeliverySnLessThanOrEqualTo(String value) {
            addCriterion( "delivery_sn <=", value, "deliverySn" );
            return (Criteria) this;
        }

        public Criteria andDeliverySnLike(String value) {
            addCriterion( "delivery_sn like", value, "deliverySn" );
            return (Criteria) this;
        }

        public Criteria andDeliverySnNotLike(String value) {
            addCriterion( "delivery_sn not like", value, "deliverySn" );
            return (Criteria) this;
        }

        public Criteria andDeliverySnIn(List<String> values) {
            addCriterion( "delivery_sn in", values, "deliverySn" );
            return (Criteria) this;
        }

        public Criteria andDeliverySnNotIn(List<String> values) {
            addCriterion( "delivery_sn not in", values, "deliverySn" );
            return (Criteria) this;
        }

        public Criteria andDeliverySnBetween(String value1, String value2) {
            addCriterion( "delivery_sn between", value1, value2, "deliverySn" );
            return (Criteria) this;
        }

        public Criteria andDeliverySnNotBetween(String value1, String value2) {
            addCriterion( "delivery_sn not between", value1, value2, "deliverySn" );
            return (Criteria) this;
        }
    }

    /**
     */
    public static class Criteria extends GeneratedCriteria {

        protected Criteria() {
            super();
        }
    }

    public static class Criterion {
        private String condition;

        private Object value;

        private Object secondValue;

        private boolean noValue;

        private boolean singleValue;

        private boolean betweenValue;

        private boolean listValue;

        private String typeHandler;

        public String getCondition() {
            return condition;
        }

        public Object getValue() {
            return value;
        }

        public Object getSecondValue() {
            return secondValue;
        }

        public boolean isNoValue() {
            return noValue;
        }

        public boolean isSingleValue() {
            return singleValue;
        }

        public boolean isBetweenValue() {
            return betweenValue;
        }

        public boolean isListValue() {
            return listValue;
        }

        public String getTypeHandler() {
            return typeHandler;
        }

        protected Criterion(String condition) {
            super();
            this.condition = condition;
            this.typeHandler = null;
            this.noValue = true;
        }

        protected Criterion(String condition, Object value, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.typeHandler = typeHandler;
            if (value instanceof List<?>) {
                this.listValue = true;
            } else {
                this.singleValue = true;
            }
        }

        protected Criterion(String condition, Object value) {
            this( condition, value, null );
        }

        protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.secondValue = secondValue;
            this.typeHandler = typeHandler;
            this.betweenValue = true;
        }

        protected Criterion(String condition, Object value, Object secondValue) {
            this( condition, value, secondValue, null );
        }
    }
}